<!--
 * @Author: your name
 * @Date: 2021-10-30 10:02:04
 * @LastEditTime: 2021-10-30 10:19:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /admin_pc/src/views/Login/index.vue
-->
<template>
  <div>
      <a href="https://gitee.com/oauth/authorize?client_id=e4a37a464d56585b58297b67799f92090c28158a4ca44ee0b19c33166d0efd27&redirect_uri=http://localhost:8080/login&response_type=code">gitee登录</a>
  </div>
</template>

<script>
import {getLogin} from '../../api/login'
export default {
    created() {
        const {code} = this.$route.query
        if(code) {
            this.logins(code)
        }
    },
    methods: {
        async logins(code) {
            const data = await getLogin('/logins', {code});
            console.log(data)
        }
    },

}
</script>

<style>

</style>